package com.example.entity;

import jakarta.persistence.Id;
import jakarta.persistence.Table;
import jakarta.persistence.Transient;
import java.io.Serial;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.core.NestedRuntimeException;

/**
 * (SecKillSpu)实体类
 *
 * @author 游家纨绔
 * @since 2023-08-30 12:30:00
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "second_kill_spu")
public class SecKillSpu implements Serializable {
	@Serial
	private static final long serialVersionUID = -21989445763545097L;

	/**
	 * 主键
	 */
	@Id
	private Integer id;
	/**
	 * 商品名称
	 */
	private String goodName;
	/**
	 * 商品图片
	 */
	private String img;
	/**
	 * 秒杀时间
	 */
	private Date spikeTime;

	@Transient
	private List<SecKillSku> skuList = new ArrayList<>();

}
